/*
 * Copyright (c) 2006, 2022, webrx.cn All rights reserved.
 *
 */
package cn.webrx;

import java.util.ArrayList;
import java.util.Collections;
import java.util.Comparator;
import java.util.List;

/**
 * <p>Project: jse2204 - Lam2
 * <p>Powered by webrx On 2022-09-28 10:45:47
 *
 * @author webrx [webrx@126.com]
 * @version 1.0
 * @since 17
 */
public class Lam2 {
    public static void main(String[] args) {
        List<Integer> list = new ArrayList<>(List.of(1, 5, 10, 2, 3, 9));
        System.out.println(list);

        Collections.shuffle(list);
        System.out.println(list);

        Collections.sort(list);
        System.out.println(list);

        Collections.sort(list, (o1, o2) -> o2 - o1);
        System.out.println(list);

    }
}
